# 字符串相关工具类
def str_reverse(s):
    """
    接受传入的字符串，将字符串反转返回
    :param s:  字符串
    :return:
    """
    strVal=str(s)
    return  strVal[::-1]

def substr(s,x,y):
    """
    按照下标X和Y，对字符串进行切片
    :param s:  字符串
    :param x:  开始下标
    :param y:  结束下标
    :return:
    """
    strVal = str(s)
    return strVal[x:y]

if __name__ == '__main__':
   val= str_reverse(True)
   print(val)